home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / rexx / 1106 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.5 KB

  1. Path: JHANCOCK.COM!jschulman
  2. Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
  3. Newsgroups: comp.lang.rexx
  4. MIME-Version: 1.0
  5. Content-Type: text/plain; charset=US-ASCII
  6. Content-Transfer-Encoding: 7bit
  7. Message-ID: <REXXLIST%96022813250349@UGA.CC.UGA.EDU>
  8. Date: Wed, 28 Feb 1996 13:25:55 EST
  9. Sender: REXX Programming discussion list <REXXLIST@uga.cc.uga.edu>
  10. From: Jonathan Schulman <jschulman@JHANCOCK.COM>
  11. Subject: Re: EXPOSE, INTERPRET & SYMBOL, bug or ANSI ?
  12.  
  13. On Wed, 28 Feb 1996 12:02:14 GMT, Bill Wymond <wymond@IBM.NET> said:
  14. >While working on a function which allows easy 'passing' of stems,
  15. >some peculiarities came up and I hope that someone can explain
  16. >me the observed behaviour.
  17. >
  18. >The two points in question (they are remarked in the code sample
  19. >itself):
  20. >
  21. >   1) Why can't SYMBOL() in the sample return (correctly) 'VAR'
  22. >         and not 'LIT', as it does?
  23. >         (There is no error-message and a trace doesn't give any
  24. >          hint to me.)
  25. ...snip...
  26.  
  27. You didn't mention what TRACE you used, but 'TRACE I' does point the way
  28. in this situation.
  29.  
  30. The following piece of your code:
  31. INTERPRET 'Init = SYMBOL(' FromStem || i ')'
  32.  
  33. should be:
  34. INTERPRET 'Init = SYMBOL("'FromStem || i'")'
  35.  
  36. The point being that the argument to SYMBOL should be the literal name
  37. of the variable (hence quoted), and not the variable itself.  Hope this
  38. helps.
  39.  
  40.       Jonathan Schulman, John Hancock Mutual Life
  41.       John Hancock Place, P.O. Box 111, Boston MA  02117
  42.       jschulman@jhancock.com  tel: (617) 572-8410
  43.